From 056749a1c2e1d931e4964d8e383d9ea6a7ff3660 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sat, 9 Sep 2023 06:59:44 -0600 Subject: [PATCH] don't use posix but non-iso argument reordering in print specifiers. --- garmin_gpi.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/garmin_gpi.cc b/garmin_gpi.cc index 793c3c117..340c823be 100644 --- a/garmin_gpi.cc +++ b/garmin_gpi.cc @@ -235,7 +235,7 @@ GarminGPIFormat::read_poi(const int sz, const int tag) len = gbfgetint32(fin); /* sub-header size */ } if (GPI_DBG) { - warning("poi sublen = %1$d (0x%1$x)\n", len); + warning("poi sublen = %d (0x%x)\n", len, len); } (void) len; int pos = gbftell(fin); @@ -279,12 +279,12 @@ GarminGPIFormat::read_poi_list(const int sz) int pos = gbftell(fin); if (GPI_DBG) { PP; - warning("> reading poi list (-> %1$x / %1$d )\n", pos + sz); + warning("> reading poi list (-> %x / %d )\n", pos + sz, pos + sz); } PP; int i = gbfgetint32(fin); /* mostly 23 (0x17) */ if (GPI_DBG) { - warning("list sublen = %1$d (0x%1$x)\n", i); + warning("list sublen = %d (0x%x)\n", i, i); } (void) i; @@ -317,7 +317,7 @@ GarminGPIFormat::read_poi_group(const int sz, const int tag) int pos = gbftell(fin); if (GPI_DBG) { PP; - warning("> reading poi group (-> %1$x / %1$d)\n", pos + sz); + warning("> reading poi group (-> %x / %d)\n", pos + sz, pos + sz); } if (tag == 0x80009) { PP; -- 2.30.2